package com.fuqi.android.zhongcai.base.view.adapter;

import com.fuqi.android.zhongcai.R;
import com.fuqi.android.zhongcai.base.Constants;
import com.fuqi.android.zhongcai.business.shuig.request.result.OrderListResult;

import java.util.List;

/**
 * create by juner
 * @Date 2016-8-31
 */

@Deprecated
public class DaiChouChaAdapter extends BaseRecyclerViewAdapter<OrderListResult>{


    public DaiChouChaAdapter(List<OrderListResult> datas) {
        super(datas);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.adapter_dai_choucha;
    }

    @Override
    protected void onBind(ViewHolder holder, int position,OrderListResult data) {
        holder.setTextView(R.id.tv_install_address, data.getAddArea());
        holder.setTextView(R.id.tv_order_origin, data.getContactName());

        switch (data.getOrderStatus()) {

            case Constants.DAI_SHE_HE:
                holder.setTextView(R.id.tv_order_status, "待审核");
                break;
            case Constants.BU_TONG_GUO:
                holder.setTextView(R.id.tv_order_status, "不通过");
                break;
            case Constants.DAI_CHU_FA:
                holder.setTextView(R.id.tv_order_status, "待出发");
                break;
            case Constants.DAI_AN_ZHUANG:
                holder.setTextView(R.id.tv_order_status, "待安装");
                break;
            case Constants.DAI_CHU_LI_ORDER:
                holder.setTextView(R.id.tv_order_status, "待处理");
                break;
            case Constants.AN_ZHUANG_ZHONG:
                holder.setTextView(R.id.tv_order_status, "安装中");
                break;
            case Constants.BU_KE_AN_ZHUANG:
                holder.setTextView(R.id.tv_order_status, "不可安装");
                break;
            case Constants.AN_ZHUANG_WAN_CHENG:
                holder.setTextView(R.id.tv_order_status, "安装完成");
                break;
            case Constants.DAI_HUI_FANG:
                holder.setTextView(R.id.tv_order_status, "待回访");
                break;
            case Constants.YI_HUI_FANG:
                holder.setTextView(R.id.tv_order_status, "已回访");
                break;
            case Constants.YI_CHOU_CHA_ORDER:
                holder.setTextView(R.id.tv_order_status, "已抽查");
                break;
            case Constants.YI_PING_LUN:
                holder.setTextView(R.id.tv_order_status, "已评论");
                break;
            case Constants.KE_HU_NO_CONTACT:
                holder.setTextView(R.id.tv_order_status, "客户不可联系");
                break;
        }
    }
}
